package com.ctshk.rpc.insurance.req;

import com.ctshk.common.model.PageReq;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDate;

@Data
@ApiModel(value = "InsuranceBusinessPageReq对象", description = "保险产品分页查询对象")
public class InsuranceGroupPageReq extends PageReq implements Serializable {

    @NotNull(message = "保险类型不能为空")
    @Range(min = 1,max = 11,message = "保险类型范围(1-11)")
    @ApiModelProperty(value = "保险类型")
    private Integer insuranceType;

    @ApiModelProperty(value = "保险名称")
    private String name;
}
